<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>系统监控 - 线框图原型</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      background: #f6f7fb;
      font-family: Arial, sans-serif;
    }
    .sidebar {
      position: fixed;
      left: 0;
      top: 0;
      width: 220px;
      height: 100vh;
      background: #232946;
      color: #fff;
      display: flex;
      flex-direction: column;
      padding: 24px 0 0 0;
      box-sizing: border-box;
    }
    .sidebar .logo {
      font-size: 1.5rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 32px;
      letter-spacing: 2px;
    }
    .sidebar .menu {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 0 0 0 24px;
    }
    .sidebar .menu .menu-item {
      padding: 10px 0;
      border-radius: 6px 0 0 6px;
      cursor: pointer;
      color: #bfc8e2;
      font-size: 1rem;
    }
    .sidebar .menu .menu-item.active {
      background: #e7eaf6;
      color: #232946;
      font-weight: bold;
    }
    .main {
      margin-left: 220px;
      min-height: 100vh;
      background: #f6f7fb;
    }
    .header {
      padding: 32px 32px 0 32px;
      font-size: 2rem;
      font-weight: bold;
      color: #232946;
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .header .desc {
      font-size: 1.1rem;
      color: #888;
      font-weight: normal;
      margin-left: 16px;
    }
    .refresh-btn {
      margin-left: auto;
      background: #6a9cfb;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 10px 20px;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
    }
    .stats-row {
      display: flex;
      gap: 24px;
      margin: 32px 32px 0 32px;
    }
    .stat-card {
      flex: 1;
      background: linear-gradient(90deg, #6a9cfb 0%, #3e8cf8 100%);
      color: #fff;
      border-radius: 18px;
      padding: 32px 24px;
      text-align: left;
      font-size: 1.3rem;
      font-weight: bold;
      box-shadow: 0 2px 8px rgba(80, 60, 180, 0.06);
      position: relative;
    }
    .stat-card.orange {
      background: linear-gradient(90deg, #f7b731 0%, #f6d365 100%);
      color: #fff;
    }
    .stat-card.blue {
      background: linear-gradient(90deg, #6a9cfb 0%, #3e8cf8 100%);
    }
    .stat-card .desc {
      font-size: 1rem;
      font-weight: normal;
      margin-top: 8px;
      color: #e0e0e0;
    }
    .charts-row {
      display: flex;
      gap: 24px;
      margin: 32px 32px 0 32px;
    }
    .chart-card {
      flex: 1;
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 2px 8px rgba(80, 60, 180, 0.06);
      padding: 24px;
      min-height: 220px;
    }
    .chart-title {
      font-size: 1.1rem;
      font-weight: bold;
      margin-bottom: 8px;
    }
    .service-section {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 2px 8px rgba(80, 60, 180, 0.06);
      margin: 32px 32px 0 32px;
      padding: 24px;
    }
    .service-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 16px;
    }
    .service-header .title {
      font-size: 1.1rem;
      font-weight: bold;
    }
    .service-header .refresh-btn {
      margin-left: auto;
      background: #6a9cfb;
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
    }
    .service-filter-row {
      display: flex;
      gap: 16px;
      margin-bottom: 12px;
    }
    .service-filter-input, .service-filter-select {
      padding: 8px 12px;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      font-size: 1rem;
      background: #f6f7fb;
    }
  </style>
</head>
<body>
  <div class="sidebar">
    <div class="logo">SG3L</div>
    <div class="menu">
      <div class="menu-item">分析页</div>
      <div class="menu-item">仪表盘</div>
      <div class="menu-item active">监控页</div>
      <div class="menu-item">模板中心</div>
      <div class="menu-item">组件中心</div>
      <div class="menu-item">日志中心</div>
      <div class="menu-item">权限管理</div>
      <div class="menu-item">用户管理</div>
      <div class="menu-item">角色管理</div>
    </div>
  </div>
  <div class="main">
    <div class="header">
      系统监控
      <span class="desc">实时监控系统运行状态 · 最后更新: 17:09:39</span>
      <button class="refresh-btn">刷新数据</button>
    </div>
    <div style="text-align:center;font-size:1.3rem;font-weight:bold;color:#ffb800;margin:16px 0 0 0;">（实时监控信息）</div>
    <div class="stats-row">
      <div class="stat-card blue">18.8%<br><span class="desc">CPU使用率<br>运行良好</span></div>
      <div class="stat-card orange">75%<br><span class="desc">内存使用<br>运行良好</span></div>
      <div class="stat-card orange">79%<br><span class="desc">磁盘空间<br>空间充足</span></div>
      <div class="stat-card blue">57个<br><span class="desc">活跃连接<br>活跃连接数: 57</span></div>
    </div>
    <div class="charts-row">
      <div class="chart-card">
        <div class="chart-title">CPU 使用率</div>
        <div style="height:120px;background:#f6f7fb;border-radius:8px;"></div>
      </div>
      <div class="chart-card">
        <div class="chart-title">内存使用情况</div>
        <div style="height:120px;background:#f6f7fb;border-radius:8px;"></div>
      </div>
    </div>
    <div class="service-section">
      <div class="service-header">
        <div class="title">服务状态监控</div>
        <button class="refresh-btn">刷新服务</button>
      </div>
      <div class="service-filter-row">
        <input class="service-filter-input" type="text" placeholder="搜索服务..." />
        <select class="service-filter-select">
          <option>状态筛选</option>
        </select>
      </div>
      <div style="height:60px;background:#f6f7fb;border-radius:8px;"></div>
    </div>
  </div>
</body>
</html>
